package com.wicket.okrdataassets.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrdataassets.biz.service.IntelligentCommunicationService;
import com.wicket.okrdataassets.biz.service.dto.req.*;
import com.wicket.okrdataassets.biz.service.dto.res.*;
import com.wicket.okrdataassets.common.ro.OkrResult;
import com.wicket.okrdataassets.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/dataassets/intelligentCommunication/")
public class IntelligentCommunicationController {

  @Autowired
  IntelligentCommunicationService intelligentCommunicationService;
/**
   * D8执行文件问答
   */
    @PostMapping("implementFileQa")
    public OkrResult<ImplementFileQaRespDto> implementFileQa(@RequestBody @Validated ImplementFileQaReqDto reqDTO){
    return OkrResult.success(intelligentCommunicationService.implementFileQa(reqDTO));
    }
/**
   * D8执行单个文件长文本问答(公共)
   */
    @PostMapping("implementFileQaCom")
    public OkrResult<ImplementFileQaComRespDto> implementFileQaCom(@RequestBody @Validated ImplementFileQaComReqDto reqDTO){
    return OkrResult.success(intelligentCommunicationService.implementFileQaCom(reqDTO));
    }
}
